package cn.echase.ecare.yinfayun.domain.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author york
 * @date 2022-10-14 16:09
 */
@Data
@NoArgsConstructor
@TableName("eld_building")
public class Building implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 物理主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 柚纯字符标识
     */
    private String ucId;
    /**
     * 机构编号
     */
    private String orgId;

    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 序号
     */

    private Integer sort;
    /**
     * 名称
     */

    private String buildingName;
    /**
     * 总层数
     */

    private Integer floorNum;
    /**
     * 创建人编号
     */

    private String createUserId;
    /**
     * 修改人编号
     */

    private String updateUserId;

    private Boolean deleted;


    @TableField(exist = false)
    private boolean needFloor = false;


    @TableField(exist = false)
    private boolean needRoom = false;

    @TableField(exist = false)
    private boolean needBed = false;

    @TableField(exist = false)
    private String elderId;

    @TableField(exist = false)
    private String checkInType;

    /**
     * 是否选择全部等级  适用于pda 独栋、多栋展示
     */

    @TableField(exist = false)
    private Boolean allLevel = false;

    private String tenantId;
    private String createDept;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;

//    @TableField(exist = false)
//    List<BuildingFloor> buildingFloorList = new ArrayList<>();

}
